<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>JsLayer</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">JsLayer</p>
<hr class="separator">
<div class="content">
The JsLayer class represents data layers in the <a href="jschartmodel.htm">Javascript Chart Model</a>. The corresponding server side class is <a href="Layer.htm">Layer</a>. JsLayer objects can be obtained using <a href="JsXYChart.getLayer.htm">JsXYChart.getLayer</a> or <a href="JsXYChart.getLayerByZ.htm">JsXYChart.getLayerByZ</a>.
<br><br>
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="JsLayer.getDataSet.htm">getDataSet</a></td><td>(Self)</td><td>Gets a <a href="JsDataSet.htm">JsDataSet</a> object based on the order in which it is being added to the chart.</td></tr><tr><td><a href="JsLayer.getDataSetByZ.htm">getDataSetByZ</a></td><td>(Self)</td><td>Gets a <a href="JsDataSet.htm">JsDataSet</a> object based on the order in which it is being drawn.</td></tr><tr><td><a href="JsLayer.getDataSetCount.htm">getDataSetCount</a></td><td>(Self)</td><td>Gets the number of data sets in the layer.</td></tr><tr><td><a href="JsLayer.getNearestXValue.htm">getNearestXValue</a></td><td>(Self)</td><td>Gets the x data value that is nearest to the specified x pixel coordinate.</td></tr><tr><td><a href="JsLayer.getXIndexOf.htm">getXIndexOf</a></td><td>(Self)</td><td>Gets the data point index at the specified x data value.</td></tr><tr><td><a href="JsLayer.getXPosition.htm">getXPosition</a></td><td>(Self)</td><td>Gets the x positional value of a data point, as measured on the primary x-axis.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
